cmake_minimum_required(VERSION 3.5)

aux_source_directory(. BASE_SRC)
add_library(xlcomm_base SHARED ${BASE_SRC})

if(CMAKE_HOST_WIN32)
  target_compile_definitions(xlcomm_base PRIVATE XLCOMM_EXPORT)
else()
  target_link_libraries(xlcomm_base pthread jsoncpp)
endif()

add_subdirectory(test)